<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="m" uri="/cutm_tags"%>
<html>
<head>
<title>添加用户</title>
<script type="text/javascript">
$(document).ready(function() {
	$("#uerForm").vaildAjax(function(data){
		if(data =='ok'){
			BaseJs.alert('修改成功');
		}
	});
});
</script>
</head>
<body>
<h2 class="title"><span>用户个人文件夹设置</span></h2>
<s:form id="uerForm" action="user/EditUser!saveFloder">
	<s:hidden name="user.id" />
	<table class="form">
		<tr>
			<th width="20%">用户登录名</th>
			<td width="30%"><s:property value="user.nickName" /></td>
			<th width="20%">用户状态</th>
			<td width="30%"><s:if test="user.enable">可用</s:if><s:else>禁用</s:else></td>
		</tr>
		<tr>
			<th>用户姓名</th>
			<td><s:property value="user.name" /></td>
			<th>用户性别</th>
			<td><s:if test="user.man">男</s:if><s:else>女</s:else></td>
		</tr>
		<tr>
			<th>用户联系方式</th>
			<td><s:property value="user.link" /></td>
			<th>家庭住址</th>
			<td><s:property value="user.address" /></td>
		</tr>
		<tr>
			<th>电子邮件</th>
			<td><s:property value="user.email" /></td>
			<th>电话</th>
			<td><s:property value="user.telel" /></td>
		</tr>
		<tr>
			<th>身份证号码</th>
			<td><s:property value="user.idcard" /></td>
			<th>所属部门</th>
			<td><m:property value="user.dept" /></td>
		</tr>
		<tr>
			<th>个人文件夹地址</th>
			<td><s:textfield name="user.folder" maxlength="200" /></td>
			<th>备用地址</th>
			<td><s:textfield name="user.folderbak" maxlength="200" /></td>
		</tr>
	</table>
	<div class="btnGroup"><input type="submit" value="保存"></div>
</s:form>
</body>
</html>